﻿<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>BPM Form</title>
    <style>
        /***************************************系统自动生成不可修改************************************************/
        BODY
        {
            font-size: 12px;
            font-family: verdana;
        }
        TABLE
        {
            border-collapse: collapse;
            font-size: 12px;
            font-family: verdana;
        }
        P
        {
            padding-right: 0px;
            padding-left: 0px;
            padding-bottom: 0px;
            margin: 0px;
            padding-top: 0px;
            font-size: 12px;
            font-family: verdana;
        }
        TD
        {
            padding: 1px;
        }
        TD.NoPadding
        {
            padding-right: 0px;
            padding-left: 0px;
            padding-bottom: 0px;
            padding-top: 0px;
        }
        /*INPUT {height: 15px}*/
        INPUT.UL
        {
            border-right: medium none;
            border-top: medium none;
            border-left: medium none;
            border-bottom: #33ff33 1px solid;
        }
        TEXTAREA
        {
            font-size: 12px;
        }
        input
        {
            vertical-align: middle; /*margin-right:-3px*/
        }
        /***************************************系统自动生成不可修改************************************************/
        
        
        /***************************************修改框架 CSS 可根据要求修改************************************************/
        /* 修改框架 CSS  browserbutton  */
        .yz-xform-field-browserbutton
        {
            padding: 0px;
            margin: 0px;
            border-style: None;
            height: 30px;
            vertical-align: middle;
            font-size: 15;
            font-weight: bolder;
            background-color: transparent;
        }
        /* 修改框架 CSS  field-button  */
        .yz-xform-field-button
        {
            background-color: transparent;
            border-style: None;
        }
        
        
        
        /***************************************修改框架 CSS 可根据要求修改************************************************/
    </style>
    <!--引入表单CSS -->
    <link rel="stylesheet" type="text/css" href="~/ycsoft/style/forms/YCFormLightSteelBlue.css" />
    <!--引入公共js-->
    <script type="text/javascript" src="../../../../../ycsoft/js/common.js"></script>
    <!--设置表单公共方法不可修改-->
    <script type="text/javascript">
        //发起职位变动后设置后台部门编码、部门名称、全名
        function SelectPosition(MemberFullName, LeaderTitle, Department, Level, ParentOUName, ParentOUCode) {
            debugger;
            agent.setEleValue('txtappdeptname', ParentOUName);
            agent.setEleValue('txtappdeptcode', ParentOUCode);
            agent.setEleValue('txtappmemberfullname', MemberFullName);
            //JS赋值后，更新部门编码相关表达式
            XFormOnChange(Ext.select("div[id='txtappdeptcode']").elements[0]);
            //JS赋值后，更新部门名称相关表达式
            XFormOnChange(Ext.select("div[id='txtappdeptname']").elements[0]);
            //JS赋值后，更新人员全程相关表达式
            XFormOnChange(Ext.select("div[id='txtappmemberfullname']").elements[0]);

        }
    </script>
    <!--提供表单常用方法-->
    <script type="text/javascript">
        //获取 用户显示全称
        function getAppUserMemberFullName(value) {
            debugger;
            var strReturn;
            strReturn = value.replace("BPMOU://", "");
            return strReturn;
        }
        //比较表头开始结束日期
        function checkHeadStartEndDate() {
            var result = true;
            var vstartDate = Ext.select("div[id='dtpworkdiarystartdate'] input").elements[0].value;
            var vendDate = Ext.select("div[id='dtpworkdiaryenddate'] input").elements[0].value;
            if (vstartDate != null && vstartDate != "" && vendDate != null && vendDate != "") {
                var compareResult = CompareDateYMD(vstartDate, vendDate);
                if (compareResult == 1) {
                    YZSoft.alert("日志期间:结束日期不能小于开始日期！");
                    result = false;
                }
            }
            return result;
        }



        //比较表体中日期与开始结束日期
        function checkBodyDateStartEndDate() {
            debugger;
            var vstartDate = Ext.select("div[id='dtpworkdiarystartdate'] input").elements[0].value;
            var vendDate = Ext.select("div[id='dtpworkdiaryenddate'] input").elements[0].value;

            var writeDateObj = Ext.select("div[id='dtpwritedate'] input").elements;
            if (writeDateObj.length == 0) {
                return true;
            }
            var result = true;
            var errMsg = "";

            for (var i = 0; i < writeDateObj.length; i++) {
                var strWriteDate = writeDateObj[i].value;
                if (strWriteDate != null && strWriteDate != "") {
                    var compareResultStart = CompareDateYMD(vstartDate, strWriteDate);
                    if (compareResultStart == 1) {                      
                        errMsg += "日志明细中第" + (i + 1) + "行的日期不能小于日志期间的开始日期！\n"; ;
                    }
                    var compareResultEnd = CompareDateYMD(strWriteDate, vendDate);
                    if (compareResultEnd == 1) {
                        errMsg += "日志明细中第" + (i + 1) + "行的日期不能大于日志期间的结束日期！\n";
                    }
                }
            }
            if (errMsg != "") {
                YZSoft.alert(errMsg);
                result = false;
            }
            return result;
        }

        //比较日期（yyyy-MM-dd格式）
        //strDateBefore:开始日期
        //strDate:日期
        //开始日期>日期：1 ；开始日期<日期：-1 ；开始日期=日期：0
        function compareDateYMD(strDateBefore, strDateAfter) {
            var dateBeforeArry = strDateBefore.split("-");
            var dateArry = strDate.split("-");
            var dateBefore = new Date(dateBeforeArry[0], dateBeforeArry[1], dateBeforeArry[2]);
            var date = new Date(dateArry[0], dateArry[1], dateArry[2]);
            if (dateBefore > date) {
                return 1;
            } else if (dateBefore < date) {
                return -1;
            } else {
                return 0;
            }
        }

        function OnSubmit() {
            //校验表头开始日期、结束日期
            var vStartEndDate = checkHeadStartEndDate();
            if (vStartEndDate == false) {
                return false;
            }
            //校验表体的日期与开始日期、结束日期
            var vBodyDateStartEndDate = checkBodyDateStartEndDate();
            if (vBodyDateStartEndDate == false) {
                return false;
            }
        }


        //清空信息
        function clearCopypeopleInfo() {
            debugger;
            this.agent.findGridFromTableName(this.dom, 'oa_workdiary_t_copypeople').clearBlocks(); //删行
        }
        //得到星期
        function getWeek(selectdate) {
            debugger;
            var date = new Date(selectdate).getDay();
            return date;
        }
    </script>
</head>
<body class="yc-body">
    <form runat="server">
        <!-- Insert content here -->
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <tr class="yc-xform-tr-title">
                    <td class="yc-xform-td-title">
                        <aspxform:XLabel id="XLabel1" runat="server" Text="工作日志" ValueToDisplayText TextAlign="Center" Width="99%" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="25%" valign="bottom">
                        <aspxform:XLabel id="XLabel2" runat="server" Text="编号：" ValueToDisplayText TextAlign="Center" BorderStyle="None"></aspxform:XLabel>
                        <aspxform:XLabel id="lblcode" runat="server" ValueToDisplayText Width="85%" BorderStyle="None" XDataBind="BPMDATA:oa_workdiary_m.code"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <tr class="yc-xform-tr-th">
                    <td height="17" class="yc-xform-td-last" colspan="4">
                        <aspxform:XLabel id="XLabel4" runat="server" Text="申请人信息" BorderStyle="None"></aspxform:XLabel>
                        &nbsp;<aspxform:XTextBox id="txtShowAppUserMemberFullName" runat="server" ValueToDisplayText Width="85%" BorderStyle="None" DisableExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Express="javascript('getAppUserMemberFullName',BPMDATA:oa_workdiary_m.app_member_full_name)" Max="0" Min="0" DisableBehavior="ReadOnly" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Display="None" ForeColor="Red" ErrorMessage="日志期间不能为空！" ControlToValidate="dtpworkdiarystartdate">开始日期</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" Display="None" ForeColor="Red" ErrorMessage="日志期间不能为空！" ControlToValidate="dtpworkdiaryenddate">结束日期</aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel5" runat="server" Text="公司：" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" DataMap="OUName->BPMDATA:oa_workdiary_m.app_company_name;Code->BPMDATA:oa_workdiary_m.app_company_code" XDataSource="DataSource:BPMDATA;TableName:v_comm_get_bpmcompany_by_dept_code;Filter:scode->BPMDATA:oa_workdiary_m.app_dept_code" ValueColumn="OUName" DisplayColumn="OUName" HiddenExpress="1"></aspxform:XDropDownList>
                        <aspxform:XLabel id="lblappcompanyname" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_m.app_company_name" DisableExpress="1" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XLabel>
                    </td>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel7" runat="server" Text="部门：" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td-last">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" Width="100px" DataMap="Department->BPMDATA:oa_workdiary_m.app_dept_name;Code->BPMDATA:oa_workdiary_m.app_dept_code" XDataSource="DataSource:BPMDATA;TableName:v_bpm_sys_ou_members;Filter:UserAccount->BPMDATA:oa_workdiary_m.app_user_code" ValueColumn="OUName" DisplayColumn="OUName" HiddenExpress="1"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="txtappdeptname" runat="server" XDataBind="BPMDATA:oa_workdiary_m.app_dept_name" BorderColor="#DCDCDC" BorderWidth="1" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Width="21px" DataMap="Department->BPMDATA:oa_workdiary_m.app_dept_name;Code->BPMDATA:oa_workdiary_m.app_dept_code" XDataSource="DataSource:BPMDATA;TableName:v_bpm_sys_ou_members;Filter:UserAccount->BPMDATA:oa_workdiary_m.app_user_code" DisplayColumns="OUName:部门名称"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel9" runat="server" Text="申请人：" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XLabel id="lblappusername" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_m.app_user_name" DisableExpress="1" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XLabel>
                    </td>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel11" runat="server" Text="申请日期：" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td-last">
                        <aspxform:XDateTimePicker id="dtpappdate" runat="server" Width="100px" XDataBind="BPMDATA:oa_workdiary_m.app_date" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel13" runat="server" Text="<font color='#ff0000'>*</font>日志期间:" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XDateTimePicker id="dtpworkdiarystartdate" runat="server" Width="46%" XDataBind="BPMDATA:oa_workdiary_m.workdiary_start_date" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XDateTimePicker>
                        <aspxform:XLabel id="XLabel14" runat="server" Text="至" TextAlign="Center" Width="5%" Height="100%"></aspxform:XLabel>
                        <aspxform:XDateTimePicker id="dtpworkdiaryenddate" runat="server" Width="46%" XDataBind="BPMDATA:oa_workdiary_m.workdiary_end_date" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XDateTimePicker>
                    </td>
                    <td width="15%" align="right" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel12" runat="server" Text="抄送：" TextAlign="Right" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td-last">
                        <aspxform:XLabel id="lblcopypeoplecode" runat="server" Width="80%" XDataBind="BPMDATA:oa_workdiary_m.copypeople_code" BorderColor="#DCDCDC" BorderWidth="1" Express="BPMDATA:oa_workdiary_t_copypeople.copypeople_code" HiddenExpress="1" Height="100%"></aspxform:XLabel>
                        <aspxform:XLabel id="lblcopypeoplename" runat="server" Width="80%" XDataBind="BPMDATA:oa_workdiary_m.copypeople_name" BorderColor="#DCDCDC" BorderWidth="1" Express="BPMDATA:oa_workdiary_t_copypeople.copypeople_name" Height="100%"></aspxform:XLabel>
                        <aspxform:XSelectUserButton id="XSelectUserButton1" runat="server" Width="21px" DataMap="Account->BPMDATA:oa_workdiary_t_copypeople.copypeople_code;DisplayName->BPMDATA:oa_workdiary_t_copypeople.copypeople_name" MultiSelect="True"></aspxform:XSelectUserButton>
                        <aspxform:XButton id="XButton1" runat="server" Text="清空" XClass="YZSoft.Forms.Field.Button" OnClientClick="clearCopypeopleInfo()" UseSubmitBehavior="False"></aspxform:XButton>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="1,1" xdatasource="DataSource:BPMDATA;TableName:oa_workdiary_copypeople;Filter:app_user_code->BPMDATA:oa_workdiary_m.app_user_code" datamap="copypeople_code->BPMDATA:oa_workdiary_t_copypeople.copypeople_code;copypeople_name->BPMDATA:oa_workdiary_t_copypeople.copypeople_name" hiddenexpress="1">
                            <tbody>
                                <tr>
                                    <td width="50%">
                                        <aspxform:XLabel id="XLabel6" runat="server" Text="抄送人编码" HiddenExpress="1"></aspxform:XLabel>
                                    </td>
                                    <td width="50%">
                                        <aspxform:XLabel id="XLabel8" runat="server" Text="抄送人姓名" HiddenExpress="1"></aspxform:XLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <aspxform:XTextBox id="XTextBox1" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_copypeople.copypeople_code" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                    </td>
                                    <td>
                                        <aspxform:XTextBox id="XTextBox2" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_copypeople.copypeople_name" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="98%" align="center" class="yc-xform-table-main" dynamicarea="2,1">
            <tbody>
                <tr class="yc-xform-tr-th">
                    <td class="yc-xform-td-last" colspan="12">
                        <aspxform:XLabel id="XLabel16" runat="server" Text="日志明细" BorderStyle="None"></aspxform:XLabel>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" Display="None" ForeColor="Red" ErrorMessage="日期不能为空！" ControlToValidate="dtpwritedate">日期</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" Display="None" ForeColor="Red" ErrorMessage="星期不能为空！" ControlToValidate="txtwriteweek">星期</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" Display="None" ForeColor="Red" ErrorMessage="全年第几周不能为空!" ControlToValidate="txtyearfullweek">全年第几周</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" Display="None" ForeColor="Red" ErrorMessage="工作类别不能为空!" ControlToValidate="txtworktypecode">工作类别</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress='BPMDATA:oa_workdiary_t_detail.work_type_code!="200101"  &amp;&amp;BPMDATA:oa_workdiary_t_detail.work_type_code!="200102"' Display="None" ForeColor="Red" ErrorMessage="工作内容不能为空!" ControlToValidate="txtworkcontent">工作内容</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" Display="None" ForeColor="Red" ErrorMessage="耗时百分比不能为空!" ControlToValidate="txtpercentage">耗时百分比</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress='BPMDATA:oa_workdiary_t_detail.work_type_code!="200101" &amp;&amp;BPMDATA:oa_workdiary_t_detail.work_type_code!="200102"&amp;&amp;BPMDATA:oa_workdiary_t_detail.work_type_code!="200103"' Display="None" ForeColor="Red" ErrorMessage="客户名称不能为空!" ControlToValidate="txtcustomername">客户名称</aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress='BPMDATA:oa_workdiary_t_detail.work_type_code!="200102"&amp;&amp;BPMDATA:oa_workdiary_t_detail.work_type_code!="200103"' Display="None" ForeColor="Red" ErrorMessage="项目名称不能为空!" ControlToValidate="txtprojectname">项目名称</aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
                <tr class="yc-xform-tr-th2">
                    <td width="3%" align="center" class="yc-xform-td-last">
                        <aspxform:XLabel id="XLabel17" runat="server" Text="序号" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="8%" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel18" runat="server" Text="<font color='#ff0000'>*</font>日期" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="7%" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel19" runat="server" Text="<font color='#ff0000'>*</font>星期" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="8%" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel20" runat="server" Text="<font color='#ff0000'>*</font>全年第几周" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="76" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel21" runat="server" Text="<font color='#ff0000'>*</font>工作类别" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="76" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel22" runat="server" Text="<font color='#ff0000'>*</font>工作内容" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="8%" align="center" class="yc-xform-td" colspan="2">
                        <aspxform:XLabel id="XLabel23" runat="server" Text="<font color='#ff0000'>*</font>耗时百分比" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="76" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel24" runat="server" Text="<font color='#ff0000'>*</font>客户名称" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="76" align="center" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel25" runat="server" Text="<font color='#ff0000'>*</font>项目名称" BorderStyle="None"></aspxform:XLabel>
                    </td>
                    <td width="76" align="center" class="yc-xform-td-last">
                        <aspxform:XLabel id="XLabel26" runat="server" Text="备注" BorderStyle="None"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="yc-xform-td-last">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" TextAlign="Center" Width="100%" BorderStyle="None" BorderWidth="1" BackColor="White"></aspxform:XGridLineNo>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XDateTimePicker id="dtpwritedate" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.write_date" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XDateTimePicker>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtwriteweek" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.write_week" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('getWeek',BPMDATA:oa_workdiary_t_detail.write_date)" Height="100%"></aspxform:XTextBox>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtyearfullweek" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.year_full_week" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('getWeekNumber',BPMDATA:oa_workdiary_t_detail.write_date)" Height="100%"></aspxform:XTextBox>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtworktypename" runat="server" Width="80%" XDataBind="BPMDATA:oa_workdiary_t_detail.work_type_name" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="21px" DataMap="code->BPMDATA:oa_workdiary_t_detail.work_type_code;name->BPMDATA:oa_workdiary_t_detail.work_type_name" XDataSource="DataSource:BPMDATA;TableName:doc_enum;Filter:class_code->var_enum_ccode_type" DisplayColumns="code:编码;name:名称"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="txtworktypecode" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.work_type_code" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtworkcontent" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.work_content" BorderColor="#DCDCDC" BorderWidth="1" Height="100%" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtpercentage" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.percentage" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XTextBox>
                    </td>
                    <td width="22" class="yc-xform-td">
                        <aspxform:XLabel id="XLabel27" runat="server" Text="%" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtcustomername" runat="server" Width="80%" XDataBind="BPMDATA:oa_workdiary_t_detail.customer_name" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="txtcustomercode" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.customer_code" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Width="21px" DataMap="cust_code->BPMDATA:oa_workdiary_t_detail.customer_code;cust_name->BPMDATA:oa_workdiary_t_detail.customer_name;pm_project_code->BPMDATA:oa_workdiary_t_detail.project_code;name->BPMDATA:oa_workdiary_t_detail.project_name" XDataSource="DataSource:BPMDATA;TableName:v_oa_workdiary_to_customer_brow" DisplayColumns="cust_code:客户编码,150;cust_name:客户名称,150;pm_project_code:项目编码,150;name:项目名称,200" valign="bottom"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XTextBox id="txtprojectcode" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.project_code" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="txtprojectname" runat="server" Width="80%" XDataBind="BPMDATA:oa_workdiary_t_detail.project_name" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="21px" DataMap="pm_project_code->BPMDATA:oa_workdiary_t_detail.project_code;name->BPMDATA:oa_workdiary_t_detail.project_name" XDataSource="DataSource:BPMDATA;TableName:v_oa_workdiary_to_project_brow" DisplayColumns="pm_project_code:项目编码,150;name:项目名称,200"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="yc-xform-td-last">
                        <aspxform:XTextBox id="txtremarks" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_t_detail.remarks" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="yc-xform-td-last" valign="middle">
                        <aspxform:XAddBlockButton id="XAddBlockButton1" runat="server" Text="+" Width="21px" Height="21px" PrintOut="False" DataSource="BPMDATA" TableName="oa_workdiary_t_detail"></aspxform:XAddBlockButton>
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XLabel id="XLabel3" runat="server" Text="合计" TextAlign="Right" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="100%"></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td">
                        <aspxform:XLabel id="lbltotalpercentage" runat="server" XDataBind="BPMDATA:oa_workdiary_m.total_percentage" Express="sum(BPMDATA:oa_workdiary_t_detail.percentage)" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td">
                    </td>
                    <td class="yc-xform-td-last">
                    </td>
                </tr>
                <tr>
                    <td class="yc-xform-td-last">
                    </td>
                    <td class="yc-xform-td-last" colspan="10">
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <tr class="yc-xform-tr-th">
                    <td class="yc-xform-td-fullBorder" colspan="4">
                        <aspxform:XLabel id="XLabel29" runat="server" Text="附件" ValueToDisplayText></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td width="10%" class="yc-xform-td-fullBorder">
                        <aspxform:XLabel id="XLabel30" runat="server" Text="附件" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td-fullBorder">
                        <aspxform:XAttachments id="achattachment" runat="server" Width="98%" XDataBind="BPMDATA:oa_workdiary_m.attachment" FileTypesDescription="所有文件" FileTypes="*.*"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="98%" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
        </div>
        <table align="center" border="0" cellspacing="0" cellpadding="0" hiddenexpress="1">
            <tbody>
                <tr>
                    <td width="400">
                        隐藏字段 
                    </td>
                    <td width="400">
                        隐藏控件 
                    </td>
                </tr>
                <tr>
                    <td height="17">
                        申请人编码 
                    </td>
                    <td>
                        <aspxform:XLabel id="lblappusercode" runat="server" XDataBind="BPMDATA:oa_workdiary_m.app_user_code"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        部门编码 
                    </td>
                    <td>
                        <aspxform:XTextBox id="txtappdeptcode" runat="server" XDataBind="BPMDATA:oa_workdiary_m.app_dept_code" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        公司编码 
                    </td>
                    <td>
                        <aspxform:XLabel id="lblcompanycode" runat="server" XDataBind="BPMDATA:oa_workdiary_m.app_company_code"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        变量-枚举分类编码-工作类别 
                    </td>
                    <td>
                        <aspxform:XLabel id="lblvar_enum_ccode_type" runat="server" XDataBind="var_enum_ccode_type">2001</aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        抄送日志 
                    </td>
                    <td>
                        <aspxform:XTextBox id="txtappusername" runat="server" Width="100%" XDataBind="BPMDATA:oa_workdiary_copypeople.app_user_code" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        申请人全称 
                    </td>
                    <td>
                        <aspxform:XTextBox id="txtappmemberfullname" runat="server" Width="100%" BorderStyle="None" XDataBind="BPMDATA:oa_workdiary_m.app_member_full_name" BorderColor="#DCDCDC" BorderWidth="1" Height="100%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
